import http from '@/utils/httpRequest'

// datax插件api

export function list (params) {
  return http({
    url: http.requestUrl('/api/jobJdbcDatasource'),
    method: 'get',
    params
  })
}

export function fetched (params) {
  return http({
    url: http.requestUrl('/api/jobJdbcDatasource/' + params),
    method: 'get'
  })
}

export function updated (data) {
  return http({
    url: http.requestUrl('/api/jobJdbcDatasource/'),
    method: 'put',
    data
  })
}

export function created (data) {
  return http({
    url: http.requestUrl('/api/jobJdbcDatasource/'),
    method: 'post',
    data
  })
}

export function deleted (data) {
  return http({
    url: http.requestUrl('/api/jobJdbcDatasource/'),
    method: 'delete',
    params: data
  })
}
